<!DOCTYPE html>
<html>
    <head>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            {{title}}
        </div>
        <script>
            Vue.mixin({
                created(){
                    console.log('这是混入的created钩子函数');
                    var myOption = this.$options.myOption;
                    if(myOption){
                        console.log(myOption.toUpperCase());
                    }
                },
                data() {
                    return {
                        title:'测试混入的data'
                    }
                }
            });

            var vm = new Vue({
                el:'#app',
                myOption : 'Hello Vue!'
            });
        </script>
    </body>
</html>